Skip to content

Fix typerror in pipeline handling for MultiControlNets which only contain a single ControlNet#4454

Merged
patrickvonplaten merged 2 commits intohuggingface:mainfrom
Georgehe4:main
Aug 3, 2023
Merged

Fix typerror in pipeline handling for MultiControlNets which only contain a single ControlNet#4454
patrickvonplaten merged 2 commits intohuggingface:mainfrom
Georgehe4:main

Conversation

@Georgehe4
Copy link
Copy Markdown
Contributor

What does this PR do?

Fix handling of MultiControlNetModels that contain only one control net.

The code will run into TypeError: can't multiply sequence by non-int of type 'float' when trying to compute the conditioning scale for a MultiControlNetModel with a single ControlNet.

@patrickvonplaten @williamberman

@Georgehe4 Georgehe4 changed the title Handle single controlnet in multicontrolnet Fix typerror in pipeline handling for MultiControlNets which only contain a single ControlNet Aug 3, 2023
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

HuggingFaceDocBuilderDev commented Aug 3, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten
Copy link
Copy Markdown
Contributor

Thanks for the fix!

@patrickvonplaten patrickvonplaten merged commit 0b4430e into huggingface:main Aug 3, 2023
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…tain a single ControlNet (huggingface#4454)

* Handle single controlnet in multicontrolnet

* Fix formatting
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…tain a single ControlNet (huggingface#4454)

* Handle single controlnet in multicontrolnet

* Fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants